package eteam.aps.systeminterface.model.reqparam;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.Max;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

@Data
@ApiModel(value = "根据机构ID/类别获取角色列表请求参数")
public class UserRoleParam {
    @ApiModelProperty("机构ID")
    @NotBlank(message = "机构ID为空")
    private String orgid;
    @ApiModelProperty("角色适用类型")
    @NotNull(message = "角色适用机构不合法")
    @Max(value = 20, message = "角色适用机构不合法")
    @Min(value = 0, message = "角色适用机构不合法")
    private Integer type;
}
